package com.changhong.wlyspectrum.utils;

/**
 * Created by yangguo on 2017/5/4.
 */
public class PredictAttributeResponse {
    /*预测属性名称*/
    private String name;
    /*预测值*/
    private Double value;
    /*属性值最小值*/
    private Double lower;
    /*属性值最大值*/
    private Double upper;
    /*单位*/
    private String unit;
    public PredictAttributeResponse(String name,Double value,Double lower,Double upper ,String unit){
        this.name=name;
        this.value=value;
        this.lower=lower;
        this.upper=upper;
        this.unit=unit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Double getLower() {
        return lower;
    }

    public void setLower(Double lower) {
        this.lower = lower;
    }

    public Double getUpper() {
        return upper;
    }

    public void setUpper(Double upper) {
        this.upper = upper;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
    public Boolean isOutBound() {
        return value > upper || value < lower;
    }
}
